package com.io.util;

/**
 * Created by yangyx on 2016/7/21.
 */
public class TestUtil {

    public static void main(String[] args){
        byte[] bytes={0x11,0x10,0x09};
        System.out.println(bytes.length);
        int i=bytes[2];
        System.out.println(i);
        int k=0x11;
        System.out.println(k);
    }

    enum  State{
        HEADER_MAGIC,
        HEADER_SIGN,
        HEADER_STATUS,
        HEADER_ID,
        HEADER_BODY_LENGTH,
        BODY
    }

}
